package com.app.controller;

import com.app.db.mongodb.m1.MongoUserEntityM1;
import com.app.service.MongoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author liuli
 */
@RestController
@RequestMapping("/dev")
public class DevController {

    @Autowired
    MongoService mongoService;

    @RequestMapping("/mongo/saveMultiple")
    public String saveMultiple( HttpServletRequest request){
        mongoService.saveMultiple();
        return "ok";
    }
}
